package io.sdl.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 点赞表
 * 
 * @author Dchen
 * @email 1211734836@qq.com
 * @date 2025-04-25 14:09:19
 */
@Data
@TableName("sdl_likes")
public class SdlLikesEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 点赞ID
	 */
	@TableId
	private Long id;
	/**
	 * 用户ID
	 */
	private Long userId;
	/**
	 * 点赞目标ID
	 */
	private Long targetId;
	/**
	 * 点赞类型(1-日记,2-评论)
	 */
	private Integer targetType;
	/**
	 * 创建时间
	 */
	private Date createdAt;

}
